/*
 * @Author: likang xie 
 * @Date: 2018-08-14 19:29:17 
 * @Purpose: 工具类
 */

.imooc-flex {
  display: flex;
}

.imooc-flex-between {
  justify-content: space-between;
}

.imooc-flex-around {
  justify-content: space-around;
}

.imooc-flex-column {
  flex-direction: column;
}

.imooc-flex-center {
  justify-content: center;
  align-items: center;
}

.imooc-container {
  padding: 1.5rem;
}

.fz-small {
  font-size: 1.2rem;
}

.fz-big {
  font-size: 1.6rem;
}

.bold {
  font-weight: bold;
}

.pointer {
  cursor: pointer;
}

.avatar {
  width: 4rem;
  border-radius: 50%;
}

.btn {
  @extend .pointer;
  &:active {
    opacity: .7;
  }
}

.avatar-small {
  width: 3rem;
}

.avatar-big {
  width: 6rem;
}

.mr-10 {
  margin-right: 1rem;
}

.mt-10 {
  margin-top: 1rem;
}

.mb-10 {
  margin-bottom: 1rem;
}

.ml-10 {
  margin-left: 1rem;
}

.has-line {
  border-bottom: .5rem solid #ebebeb;
}

.text-center {
  text-align: center;
}

.icon-return {
  color: #000 !important;
}

// 文字溢出隐藏
$i: 4;
@while $i>0 {
  .hide-text-#{$i} {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: $i;
    overflow: hidden;
  }
  $i: $i - 1;
}
